/**
 * 
 */
package edu.w106.platform.server;

import java.io.File;
import java.io.FileFilter;

/**
 * @author w106
 *
 */
public class WarFilter implements FileFilter {

	/* (non-Javadoc)
	 * @see java.io.FileFilter#accept(java.io.File)
	 */
	@Override
	public boolean accept(File pathname) {
		String fn = pathname.getName();
		if(fn==null || fn.length()<4){
			return false;
		}else if(fn.toLowerCase().endsWith(".war")){
			return true;
		}else
			return false;
	}

}
